package com.hr.controller;

import com.hr.pojo.Tag;
import com.hr.service.TagServiceMapper;
import com.hr.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("tag")
public class TagController {
    @Autowired
    private TagServiceMapper tagServiceMapper;
    @GetMapping("/taglist/{id}")
    public SysResult getTagList(@PathVariable Integer id){
        List<Tag> tagList = tagServiceMapper.getTagList(id);
        return SysResult.success(tagList);
    }
}
